<?php

class Product
{
    private $list;

    public function __construct($food)
    {
        $this->list[] = $food;
    }

    public function add($tag)
    {
        $this->list[] = $tag;
    }

    public function show()
    {
        foreach ($this->list as $item) {
            fwrite(STDOUT, $item . "\n");
        }
    }
}